package com.star.area.dao.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModelProperty;
/**
 * area地区重构，与地区相关的内容信息
 * @author gehaixia
 *
 */
@Entity
@Table(name = "country_associated_info")
public class CountryAssociatedInfoEntity implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = -1046923938850839448L;
	
	@ApiModelProperty(value = "标识id")
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;
	
	@ApiModelProperty(value = "国家外键")
	@Basic
	@Column(name = "fk_country_id")
	private Long fkCountryId;
	
	@ApiModelProperty(value = "编码")
    @Basic
    @Column(name = "code")
    private String code;
	
	/*@ApiModelProperty(value = "状态")
    @Basic
    @Column(name = "status")//Deleted(0), Normal(1);
	private Integer status;*/
	
    @ApiModelProperty(value = "创建时间")
	@Basic
    @Column(name = "create_time", updatable = false, insertable = false)
    private Date createDate;
    
    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time", updatable = false, insertable = false)
    private Date updateDate;
    
    @ApiModelProperty(value = "是否上线")
    @Basic
    @Column(name = "onLine")
    private boolean onLine;
    
    @ApiModelProperty(value = "boss是否上线")
    @Basic
    @Column(name = "boss_status")
    private Boolean bossStatus;
    @ApiModelProperty(value = "portal是否上线")
    @Basic
    @Column(name = "portal_online")
    private Boolean portalOnline;
   
    @ApiModelProperty(value = "联系方式或客服电话")
    @Basic
    @Column(name = "phone_number")
    private String phoneNumber;

    @ApiModelProperty(value = "官网是否有运营内容@0:没有@1:有")
    @Basic
    @Column(name = "portal_status")
    private boolean portalStatus;

    /**
     * ott 业务开通状态 0 不开通，1 开通
     **/
    @ApiModelProperty(value = " ott 业务开通状态 0 不开通，1 开通")
    @Basic
    @Column(name = "ott_status")
    private int ottStatus = 1;
    /**
     * dvb 业务开通状态 0 不开通，1 开通
     **/
    @ApiModelProperty(value = " dvb 业务开通状态 0 不开通，1 开通")
    @Basic
    @Column(name = "dvb_status")
    private int dvbStatus = 1;
    
    
    @ApiModelProperty(value = "货币名称")
    @Basic
    @Column(name = "currency_name")
    private String currencyName;
   
    @ApiModelProperty(value = "支付系统公司收款账号")
    @Basic
    @Column(name = "account_no_in_wallet")
    private String accountNoInWallet;
    
   
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public boolean isOnLine() {
		return onLine;
	}
	public void setOnLine(boolean onLine) {
		this.onLine = onLine;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public String getCurrencyName() {
		return currencyName;
	}
	public void setCurrencyName(String currencyName) {
		this.currencyName = currencyName;
	}
	public String getAccountNoInWallet() {
		return accountNoInWallet;
	}
	public void setAccountNoInWallet(String accountNoInWallet) {
		this.accountNoInWallet = accountNoInWallet;
	}
	public boolean isPortalStatus() {
		return portalStatus;
	}
	public void setPortalStatus(boolean portalStatus) {
		this.portalStatus = portalStatus;
	}
	public int getOttStatus() {
		return ottStatus;
	}
	public void setOttStatus(int ottStatus) {
		this.ottStatus = ottStatus;
	}
	public int getDvbStatus() {
		return dvbStatus;
	}
	public void setDvbStatus(int dvbStatus) {
		this.dvbStatus = dvbStatus;
	}
	public Long getFkCountryId() {
		return fkCountryId;
	}
	public void setFkCountryId(Long fkCountryId) {
		this.fkCountryId = fkCountryId;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	public boolean isBossStatus() {
		if(bossStatus==null) {
			return false;
		}
		return bossStatus;
	}
	public void setBossStatus(boolean bossStatus) {
		this.bossStatus = bossStatus;
	}
	public Boolean isPortalOnline() {
		if(null==portalOnline) {
			return false;
		}
		return portalOnline;
	}
	public void setPortalOnline(Boolean portalOnline) {
		this.portalOnline = portalOnline;
	}
    
}
